package com.his.registration.service.impl;

import com.his.registration.mapper.MedicalRecordMapper;
import com.his.registration.pojo.MedicalRecord;
import com.his.registration.service.MedicalRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.service.impl
 * @Author: ZhangYing
 * @Date: 2023/7/3 14:33
 * @Description:
 */
@Service
public class MedicalRecordServiceImpl implements MedicalRecordService {
    @Autowired
    private MedicalRecordMapper medicalRecordMapper;

    @Override
    public int insert(MedicalRecord medicalRecord) {
        return medicalRecordMapper.insert(medicalRecord);
    }

    @Override
    public int getIdByRegisterId(int registerId) {
        return medicalRecordMapper.getIdByRegisterId(registerId);
    }

    @Override
    public int getInsertId() {
        return medicalRecordMapper.getInsertId();
    }

    @Override
    public int update(MedicalRecord medicalRecord) {
        return medicalRecordMapper.update(medicalRecord);
    }
}
